package com.zhbit.action;

import com.opensymphony.xwork2.ActionSupport;
import com.zhbit.Service.LabelService;

public class DeletelabelAction extends ActionSupport{
	private LabelService ls;
	private int id;
private int type;

	public void setType(int type) {
	this.type = type;
}

public int getType() {
	return type;
}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setLs(LabelService ls) {
		this.ls = ls;
	}

	public LabelService getLs() {
		return ls;
	}
	public String execute() throws Exception {
	
		 ls.deletelabel(id,0);
	       return SUCCESS;
	}
}
